#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include<list>
int main()
{
	list<int> l1 = { 1,2,3,4,5 };

	auto it = l1.begin();
	while (it != l1.end())
	{
		cout << *it;
		it++;
	}



	return 0;
}